
            	<form action="#" AjaxForm="/AdminMain/ArticleType/DoAdd/"  AjaxVerify='OnChange'  AjaxSuccess="onRefresh">
            	
					<p>
                        <label for="textfield"><strong>名称</strong></label>
                        <input id="Title"  maxlength="20"  name="Title" type="text"  class="inputbox"> <br>
                        <span id="Titlespan" class="smltxt red"></span>
						<br>
                    </p>
                    <p>
                    	<label for="errorbox"><span ><strong>默认模版:</strong></span></label>
                        <select style="width:320px" name="TemplateId">
                        {% for info in Model.tmpe   %}
                    	<option value="{{info.id}}">{{info.TemplateName}}</option>
						{% endfor  %}
                        </select>
						
						<br><br>
                    </p>
					<input type="hidden" name="SuperiorId" value="{{Model.Superior.ArticleTypeid}}">
                  <input type="submit" id="submitoChange" value="提  交" class="btn"> 
                </form>
				


<script>
$(InfoPage)


 function OnChange()
 {
 	$("#Title").removeClass("errorbox");
    if($("#Title").val()+"a"=="a")
	{
		$("#Titlespan").html("请输入标题");
		$("#Title").addClass("errorbox");
	}else
	{
		return true;
	}
 
	return false;
 }
 

</script>